package booklib.model;
/**
 * 图书实体
 * @author yaer
 *
 */
public class Book{
	private int id;
	private	String bookName;
	private String author;
	private String sex;
	private Integer bookTypeId;
	private String bookTypeName;
	private Float price;
	private String bookDesc;
	
	

	public Book(int id,String bookName, String author, String sex, Integer bookTypeId, Float price, String bookDesc) {
		super();
		this.id=id;
		this.bookName = bookName;
		this.author = author;
		this.sex = sex;
		this.bookTypeId = bookTypeId;
		this.price = price;
		this.bookDesc = bookDesc;
	}
	
	public Book(String bookName, String author, Integer bookTypeId) {
		super();
		this.bookName = bookName;
		this.author = author;
		this.bookTypeId = bookTypeId;
	}

	public Book() {
		super();
		// TODO 自动生成的构造函数存根
	}
	/**
	 * @return id
	 */
	public int getId() {
		return id;
	}
	/**
	 * @param id 要设置的 id
	 */
	public void setId(int id) {
		this.id = id;
	}
	/**
	 * @return bookName
	 */
	public String getBookName() {
		return bookName;
	}
	/**
	 * @param bookName 要设置的 bookName
	 */
	public void setBookName(String bookName) {
		this.bookName = bookName;
	}
	/**
	 * @return author
	 */
	public String getAuthor() {
		return author;
	}
	/**
	 * @param author 要设置的 author
	 */
	public void setAuthor(String author) {
		this.author = author;
	}
	/**
	 * @return sex
	 */
	public String getSex() {
		return sex;
	}
	/**
	 * @param sex 要设置的 sex
	 */
	public void setSex(String sex) {
		this.sex = sex;
	}
	/**
	 * @return bookTypeId
	 */
	public Integer getBookTypeId() {
		return bookTypeId;
	}
	/**
	 * @param bookTypeId 要设置的 bookTypeId
	 */
	public void setBookTypeId(Integer bookTypeId) {
		this.bookTypeId = bookTypeId;
	}
	/**
	 * @return bookTypeName
	 */
	public String getBookTypeName() {
		return bookTypeName;
	}
	/**
	 * @param bookTypeName 要设置的 bookTypeName
	 */
	public void setBookTypeName(String bookTypeName) {
		this.bookTypeName = bookTypeName;
	}
	/**
	 * @return price
	 */
	public Float getPrice() {
		return price;
	}
	/**
	 * @param price 要设置的 price
	 */
	public void setPrice(Float price) {
		this.price = price;
	}
	/**
	 * @return bookDesc
	 */
	public String getBookDesc() {
		return bookDesc;
	}
	/**
	 * @param bookDesc 要设置的 bookDesc
	 */
	public void setBookDesc(String bookDesc) {
		this.bookDesc = bookDesc;
	}
	
	
}
